﻿using IRepository;
using IServices;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;

namespace Management.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class ValuesController : ControllerBase
    {
        private readonly ILogger<ValuesController> logger;
        private readonly IDictsService dictsService;
        private readonly IAccountRoleService accountRoleService;
        private readonly IRoleService roleService;
        private readonly IRolePermissionService rolePermissionService;

        public ValuesController(
            IAccountRepository accountRepository,
            ILogger<ValuesController> logger,
            IDictsService dictsService,
            IAccountRoleService accountRoleService,
            IRoleService roleService,
            IRolePermissionService rolePermissionService)
        {
            this.dictsService = dictsService;
            this.accountRoleService = accountRoleService;
            this.roleService = roleService;
            this.logger = logger;
            this.rolePermissionService = rolePermissionService;
        }

        /// <summary>
        /// 测试接口
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        [ResponseCache(Duration = 600)]
        public string Get()
        {
            throw new System.Exception("输出一场");
            //return "string1";
        }
    }
}